package com.core.life.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.core.common.entity.BaseEntity;

/**
 * 图片
 *
 */
@Entity
@Table(name="t_image")
public class ImageEntity extends BaseEntity{
	
	/**   */
	private static final long serialVersionUID = 1L;

	@Column(name = "name", nullable = false)
	private String name;
	
	@Column(name = "relativePath", nullable = false, length=256)
	private String relativePath;
	
	@Column(name = "absolutePath", nullable = true, length=512)
	private String absolutePath;
	
	@Column(name = "consumeRecordId", nullable = false)
	private Long consumeRecordId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}

	public String getAbsolutePath() {
		return absolutePath;
	}

	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}

	public Long getConsumeRecordId() {
		return consumeRecordId;
	}

	public void setConsumeRecordId(Long consumeRecordId) {
		this.consumeRecordId = consumeRecordId;
	}
	
}
